package nirvana.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Joseph.Li
 * @author joseph.li@king-v.com
 * Created in 2022-07-08 21:04
 *
 *  mvc 安全配置
 *
 */
@Data
@Component
@ConfigurationProperties(prefix="security.jwt")
public class SecurityProperties {

    /**
     * token HTTP 头
     */
    private String tokenHttpHeader;

    /**
     * refreshToken HTTP 头
     */
    private String refreshTokenHttpHeader;

    /**
     * token头部
     */
    private String tokenHead;

    /**
     * token有效时间  分钟
     */
    private Integer expire=5;

    /**
     * 刷新token的有效时间
     */
    private Integer refreshExpire=5;
}
